{% extends 'news/base.html' %}

{% block title %}会员充值{% endblock %}

{% load static %}
{% block style %}


    <link rel="stylesheet" href="{% static 'news/css/log.css' %}">

    <link rel="stylesheet" href="{% static 'news/css/jfdh.css' %}">
    <link rel="stylesheet" href="{% static 'news/css/hy.css' %}">


{% endblock %}


{% block top %}
    <div id="up">
        <div></div>支付
    </div>
{% endblock %}

{% block content %}

    <div id="d">
        <div>
            <p class="d_p">
                支付金额：
                <span class="d_s1" id="hy_s1">{{ author.money }}</span>
                原 VIP<span class="d_s2" id="hy_s2">{{ author.vip }}</span>
                抵扣¥
                <span id="hy_s3">0</span>
            </p>
        </div>
        <p>选择购买方式</p>
        <div class="x_c">
            <div id="x_c_1" a="2000">
                <div><img src="{% static 'news/media/web/v1.png' %}"></div>
                <div>
                    <p>¥2000</p>
                    <p>每个月可免费发布2条新闻</p>
                </div>
            </div>
            <div id="x_c_2" a="5000">
                <div><img src="{% static 'news/media/web/v2.png' %}"></div>
                <div>
                    <p>¥5000</p>
                    <p>每个月可免费发布4条新闻</p>
                </div>
            </div>
            <div id="x_c_3" a="10000">
                <div><img src="{% static 'news/media/web/v3.png' %}"></div>
                <div>
                    <p>¥10000</p>
                    <p>每个月可免费发布10条新闻</p>
                </div>
            </div>
        </div>
        <p>选择支付方式</p>
        <div class="zhifu">
            <div a="wx">
                <img src="{% static 'news/media/web/we.png' %}">
            </div>
            <div a="zfb">
                <img src="{% static 'news/media/web/zfb.png' %}">
            </div>
        </div>

        <div>
             <input type="button" name="jf_ok" value="确认支付" id="btn">
        </div>
    </div>




{% endblock %}
{% block js %}
<script src="/static/js/jQuery.js"></script>
<script src="{% static 'news/js/jfdh.js' %}"></script>
<script>

    $('#btn').click(function(){
        console.log('999999');
       url = "{% url 'news:play' %}?money=" + money +'&play_choice=' + play_coice;
       $.ajax({
           url:url,
           success:function(data){
               console.log(data);
               alert(data.msg);
               alert(data.info);
        },
       })
    });





</script>


{% endblock %}



